[NTG-context] Re: usage of conversion in \date

2023-12-18 Thread Peter Münster
On Wed, Nov 29 2023, Peter Münster wrote: > According to https://wiki.contextgarden.net/Command/date: > "The name suffixes indicate number conversions. Any conversion, either > built-in or defined by \defineconversion, can be used there." > > But it does not seem to w

[NTG-context] Re: usage of conversion in \date

2023-11-29 Thread Peter Münster
le un novembre". You say "le deux novembre" but not "le deuxième novembre". According to https://wiki.contextgarden.net/Command/date: "The name suffixes indicate number conversions. Any conversion, either built-in or defined by \defineconversion, can be used ther

[NTG-context] Re: usage of conversion in \date

2023-11-29 Thread Hans Hagen
.contextgarden.net/Command/defineconversion: interfaces.implement { name = "FRdate", public= true, arguments = "string", actions = function(s) local n = tonumber(s) if n == 1 then context"1

[NTG-context] usage of conversion in \date

2023-11-28 Thread Peter Münster
Hi, When printing a date in French, I would like to convert the "1" to "1\ier", but it does not work as I expect: --8<---cut here---start->8--- \startluacode -- from https://wiki.contextgarden.net/Command/defineconversion: inter

Re: [NTG-context] Kaktovik numerals

2023-04-19 Thread Hans Hagen via ntg-context
context("%t",digits) end } \stopluacode \unprotect \permanent\def\kaktoviknumerals#1{\clf_kaktoviknumerals\numexpr#1\relax} \defineconversion [kaktoviknumerals] [\kaktoviknumerals] \defineconversion [K][\kaktoviknumerals] \definefontfeature [k

Re: [NTG-context] Kaktovik numerals

2023-04-18 Thread Hans Hagen via ntg-context
local count = 1 while true do digits[count] = utf.char(0x1D2C0 + (n % 20)) n = n // 20 if n == 0 then break; end count = count + 1 end context("%t",d

Re: [NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Hans Hagen via ntg-context
On 2/16/2023 8:07 PM, Alex Leray via ntg-context wrote: Answering my own question… this fits my needs: ### \defineconversion[romannumeralszero][0, I, II, III, IV, V, VI, VII, VIII, IX, X, XI, XII, XIII, XIV, XV, XVI, XVII, XIII, XIX, XX, XXI] \setuphead[section][conversion=romannumeralszero

Re: [NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Alex Leray via ntg-context
Answering my own question… this fits my needs: ### \defineconversion[romannumeralszero][0, I, II, III, IV, V, VI, VII, VIII, IX, X, XI, XII, XIII, XIV, XV, XVI, XVII, XIII, XIX, XX, XXI] \setuphead[section][conversion=romannumeralszero] \starttext \startsection[title={Section zero}]foo

Re: [NTG-context] numbering questions

2023-01-01 Thread Henning Hraban Ramm via ntg-context
Thank you, Wolfgang! I _knew_ ConTeXt would be able to handle my requirements! ;D It’s wikified now (at \setuphead and \defineconversion). Hraban Am 01.01.23 um 11:27 schrieb Wolfgang Schuster: Henning Hraban Ramm via ntg-context schrieb am 31.12.2022 um 18:23: A happy new year to everyone

Re: [NTG-context] numbering questions

2023-01-01 Thread Wolfgang Schuster via ntg-context
. begin example \startluacode interfaces.implement {     name  = "FourDigits",     public    = true,     arguments = "string",     actions   = function(s) context("%04d",tonumber(s)) end } \stopluacode \defineconversion [FourDigits] [\FourDigits] \setuphead   [cha

Re: [NTG-context] Changing the caption on a split table

2022-08-13 Thread Wolfgang Schuster via ntg-context
][suffix={(cont'd)] but that affects all the pages. How can I set it for the second and subsequent pages only, please? The solution turned out to be really simple (for small tables at least - less fun if you have hundreds of pages!). Just use: \defineconversion[Contd][~,{ (cont’d)},{ (con

Re: [NTG-context] Changing the caption on a split table

2022-08-13 Thread Bruce Horrocks via ntg-context
pcaption[table][suffix={(cont'd)] but that affects all the > pages. How can I set it for the second and subsequent pages only, please? The solution turned out to be really simple (for small tables at least - less fun if you have hundreds of pages!). Just use:

Re: [NTG-context] item enumeration

2022-05-25 Thread Wolfgang Schuster via ntg-context
:\currentparentitemgroup][\recurselevel].}%  #1% } \defineconversion[legal][\legalconversion] How can fix this? Are you looking for the repeat keyword? \starttext \setupitemize[1][width=\widthofstring    {0},distance=1em] \setupitemize[2][width=\widthofstring  {0.0},distance=1em] \setupitemize[3

[NTG-context] item enumeration

2022-05-25 Thread Jorge Manuel via ntg-context
Hi to All A have this piece of code that works in old ConText versions but with new versions (current version: 2022.04.19 19:53) don’t. \def\legalconversion#1{  \dorecurse{\numexpr\currentitemlevel-1}{%  \rawcounter[itemgroup:\currentparentitemgroup][\recurselevel].}%  #1% } \defineconversion

Re: [NTG-context] TOC chapter and section numbering

2020-08-19 Thread Adrian
s > >    6. Conversion > >    7. Fundamental theorems on well-formed formulas and on the normal form > > I tried to the following for the chapters: > > \defineconversion[church][Chapter \Romannumerals.\quad] > > \setuphead[chapter][conversion=church] > > Whic

Re: [NTG-context] TOC chapter and section numbering

2020-08-19 Thread Wolfgang Schuster
the normal form I tried to the following for the chapters: \defineconversion[church][Chapter \Romannumerals.\quad] \setuphead[chapter][conversion=church] Which appeared to generate the prefix correctly but it overlapped the title. \setuplabeltext [en] [chapter=Chapter ] \defineresetset

[NTG-context] TOC chapter and section numbering

2020-08-18 Thread Adrian
on Chapter II. Lambda Conversion . 5. Primitive symbols and formulas 6. Conversion 7. Fundamental theorems on well-formed formulas and on the normal form I tried to the following for the chapters: \defineconversion[church][Chapter \Romannumerals.\quad] \setuphead[chapter][conversion=chur

Re: [NTG-context] Change hyphenation mark

2020-05-27 Thread Hans Hagen
                \or ד                 \or ה                 \or ו                 \or ז                 \or ח                 \or ט                 \or י                 \else -\fi} \defineconversion[hebrewnumerals][\hebrewnumber] I assume that the right way to do it, that would allow for more numbers

Re: [NTG-context] Change hyphenation mark

2020-05-26 Thread Marc Trius
\hebrewnumber#1% {\ifcase#1 \or א \or ב \or ג \or ד \or ה \or ו \or ז \or ח \or ט \or י \else -\fi} \defineconversion[hebrewnumerals][\hebrewnumber

Re: [NTG-context] Using \doifelse to change the itemization symbol in specific cases

2020-04-25 Thread Kevin Kenan
s won't > increment the item counter. To continue the counter and replace some symbol > you have to create your own number conversion. > > \defineconversion [kevin] [1,k,3,4,5,6,7,8,9] > > \starttext > > \startitemize[n] > \item A > \txt{k} B > \

Re: [NTG-context] Using \doifelse to change the itemization symbol in specific cases

2020-04-25 Thread Wolfgang Schuster
items with \txt but this won't increment the item counter. To continue the counter and replace some symbol you have to create your own number conversion. \defineconversion [kevin] [1,k,3,4,5,6,7,8,9] \starttext \startitemize[n] \item A \txt{k} B \item C \stopitemize \blank[2*line

Re: [NTG-context] \setupitemgroup[itemize],/setupitemize

2019-12-23 Thread Willi Egger
checks if the applies keywords include > the name of a symbol (something you create with \definesymbol) or the name of > a number conversion (something you create with \defineconversion) and applies > it to the current entry. > > This check also you to create

Re: [NTG-context] Symbol Footnote Command

2019-12-23 Thread Aykut Aykutt
gt; %-- Working example, but it is not what I need -- > > \setupindenting[yes,small] > > \defineconversion[mymix][1,\m{*},2] > > > > \setupnotation[footnote][align={hz,hanging},indenting={yes,small,next},numberconversion=mymix] > > >

Re: [NTG-context] Symbol Footnote Command

2019-12-23 Thread Hans Hagen
On 12/23/2019 2:21 PM, Aykut Aykutt wrote: Hi, I can change the mark of the second footnote from "2" to asterix by defining a conversion like so: %-- Working example, but it is not what I need -- \setupindenting[yes,small] \defineconversion[mymix][1,\m{*},2] \set

[NTG-context] Symbol Footnote Command

2019-12-23 Thread Aykut Aykutt
Hi, I can change the mark of the second footnote from "2" to asterix by defining a conversion like so: %-- Working example, but it is not what I need -- \setupindenting[yes,small] \defineconversion[mymix][1,\m{*},2] \setupnotation[footnote][align={hz,hanging},indenting={yes,

Re: [NTG-context] \setupitemgroup[itemize],/setupitemize

2019-12-18 Thread Wolfgang Schuster
the symbol for the bullets or use numbers instead ConTeXt checks if the applies keywords include the name of a symbol (something you create with \definesymbol) or the name of a number conversion (something you create with \defineconversion) and applies it to the current entry. This check also you

Re: [NTG-context] Indenting number in TOC, particular numbering scheme, and other questions

2019-12-04 Thread Daniel Haid
] \usetypescript[termes] \setupbodyfont[termes,12pt] \def\arconv#1{\alphabeticnumerals{#1})} \defineconversion[ar][\arconv] \def\aarconv#1{\alphabeticnumerals{#1}\alphabeticnumerals{#1})} \defineconversion[aar][\aarconv] \definestructureconversionset[myconvset][,A,I,n,ar,aar] \setupheads[part

[NTG-context] Indenting number in TOC, particular numbering scheme, and other questions

2019-12-02 Thread Daniel Haid
t] \def\arconv#1{\alphabeticnumerals{#1})} \defineconversion[ar][\arconv] \def\aarconv#1{\alphabeticnumerals{#1}\alphabeticnumerals{#1})} \defineconversion[aar][\aarconv] \def\lnrconv#1{(\numbers{#1})} \defineconversion[lnr][\lnrconv] \def\larconv#1{(\alphabeticnumerals{#1})} \defineconversion[lar][\larconv]

Re: [NTG-context] Manipulating the pagenumber in the TOC

2019-04-21 Thread Wolfgang Schuster
nt.0f”,(\pagenumber+1)/2} This works indeed fine. However now I am confronted with the fact, that in the TOC the manipulated pagenumbers should be taken into account. \def\dwarsliggernumber#1%   {\number\numexpr(#1+1)/2\relax} \defineconversion [dwarsligger] [\dwarsliggernumber] \setuppapersize[A5,land

Re: [NTG-context] A strange request...

2019-02-20 Thread Wolfgang Schuster
letterpercent d",(#1+1)/2}} \defineconversion [dwarsligger] [\DwarsliggerNumber] \setuppapersize[A5,landscape] \setupuserpagenumber[numberconversion=dwarsligger] \setuppagenumbering[location=none] \setupheadertexts [\doifoddpageelse{\prefixedpagenumber}{}] \starttext \dorecurse{1

Re: [NTG-context] Font fallback scaling

2018-04-13 Thread Magnus J
][rscale=1.05,range=math:somesymbols] \definefontfamily[mainface][serif][Adobe Garamond Pro] \definefontfamily[mainface][math][TeX Gyre Termes Math][scale=0.9] \setupbodyfont[mainface,11pt] % footnotes \defineconversion[avhset][\m{\wedge},\m{\prime}] \setupnotation

Re: [NTG-context] Arbitrary tag of displayed formula

2017-11-08 Thread Mikael P. Sundqvist
On Wed, Nov 8, 2017 at 12:40 PM, Otared Kavian <ota...@gmail.com> wrote: > Hi Mikael, > > I learned the following from Aditya some time ago, on his website Random > Determinism: maybe you can adapt it to your needs. > > \defineconversion[myset][\star,{\sta

Re: [NTG-context] Arbitrary tag of displayed formula

2017-11-08 Thread Otared Kavian
Hi Mikael, I learned the following from Aditya some time ago, on his website Random Determinism: maybe you can adapt it to your needs. \defineconversion[myset][\star,{\star\star},{\star\star\star}] \defineformula[star][numberconversion=myset] \starttext \placeformula \startstarformula a^4 + b

Re: [NTG-context] Increment the section counter

2017-09-14 Thread Procházka Lukáš Ing .
e: You can enable manual numbering \setuphead[section][ownnumber=yes] \starttext \section{3}{Section 1} \section{5}{Section 1} \section{6}{Section 1} \stoptext or use a custom conversion \defineconversion[drunk][3,5,6] \setuphead[section][conversion=drunk] \starttext \dorecurse{3}{

Re: [NTG-context] Increment the section counter

2017-09-12 Thread Fabrice Couvreur
n 1} > > \section{5}{Section 1} > > \section{6}{Section 1} > > \stoptext > > > or use a custom conversion > > > \defineconversion[drunk][3,5,6] > > \setuphead[section][conversion=drunk] > > \starttext > > \dorecurse{3}{\expanded{\section{Section \recurselev

Re: [NTG-context] Increment the section counter

2017-09-12 Thread Wolfgang Schuster
You can enable manual numbering \setuphead[section][ownnumber=yes] \starttext \section{3}{Section 1} \section{5}{Section 1} \section{6}{Section 1} \stoptext or use a custom conversion \defineconversion[drunk][3,5,6] \setuphead[section][conversion=drunk] \starttext \dorecurse{3

Re: [NTG-context] Could you look at this?

2017-08-08 Thread Jean-Pierre Delange
your help. \defineexpandable[1]\PreviousNumber {\number\numexpr#1-1\relax} \defineconversion[PreviousNumber][\PreviousNumber] \defineconversionset[ParagraphNumber][n,PreviousNumber,PreviousNumber] \defineseparatorset [ParagraphNumber][.,] \definecounter[ParagraphNumber][numberconversionset=Pa

Re: [NTG-context] Could you look at this?

2017-08-07 Thread Idris Samawi Hamid ادريس سماوي حامد
n is a start. Here is a link to the book that illustrates the layout: https://www.dropbox.com/s/q7znlu0y362abno/Mure-Introduction-to-Hegel-OCR.pdf?dl=0 Thanks in advance for your help. \defineexpandable[1]\PreviousNumber {\number\numexpr#1-1\relax} \defineconversion[PreviousNumber][\Pr

Re: [NTG-context] Could you look at this?

2017-08-07 Thread Wolfgang Schuster
o/Mure-Introduction-to-Hegel-OCR.pdf?dl=0 Thanks in advance for your help. Idris Wolfgang Schuster <mailto:schuster.wolfg...@gmail.com> 7. August 2017 um 20:17 \defineexpandable[1]\PreviousNumber {\number\numexpr#1-1\relax} \defineconversion[PreviousNumber][\PreviousNumber] \definec

Re: [NTG-context] Could you look at this?

2017-08-07 Thread Wolfgang Schuster
o/Mure-Introduction-to-Hegel-OCR.pdf?dl=0 Thanks in advance for your help. \defineexpandable[1]\PreviousNumber {\number\numexpr#1-1\relax} \defineconversion[PreviousNumber][\PreviousNumber] \defineconversionset[ParagraphNumber][n,PreviousNumber,PreviousNumber] \defineseparatorset [Paragraph

Re: [NTG-context] Formula numbering conversion

2017-03-01 Thread Antoine Cailliau
rmalstopformula\stopformula >> \def\stopformula% >> {\normalstopformula >> \restorenumber[formula] >> \egroup >> \let\stopformula\normalstopformula} >> \bgroup >> \savenumber[formula] >> \def\dummyconversion##1{#2} >>

Re: [NTG-context] Formula numbering conversion

2017-02-27 Thread Antoine Cailliau
ula] > \def\dummyconversion##1{#2} > \defineconversion[dummyconversion][\dummyconversion] > \setupformulas[conversion=dummyconversion] > \placeformula[#1]} > > \starttext > \placeformulatag[tag]{test} \startformula >E = mc^2 > \s

Re: [NTG-context] \mainlanguage[pe]

2016-07-07 Thread Mohammad Hossein Bateni
sed greek to > demonstrate it) but it could be done better (e.g. > \currentdate[persian->day,space,month,persian->month] with "->" as > separator for the conversion and keyword). > > %% begin example > \installlanguage[fa][state=start] > > \definec

Re: [NTG-context] \mainlanguage[pe]

2016-07-07 Thread Wolfgang Schuster
e day (see below, I used greek to demonstrate it) but it could be done better (e.g. \currentdate[persian->day,space,month,persian->month] with "->" as separator for the conversion and keyword). %% begin example \installlanguage[fa][state=start] \defineconversion[fa]

Re: [NTG-context] RTL section heads

2016-04-13 Thread Hans Hagen
l,method=two] \setupalign[r2l] \def\LTR#1{{\lefttoright#1}} \def\leftpersiandecimals#1{\LTR{\persiandecimals{#1}}} \defineconversion[leftpersiandecimals][\leftpersiandecimals] \setuphead[chapter,title,section,subject] [conversion=leftpersiandecimals,numberstyle=\righttoleft] \defineseparato

Re: [NTG-context] RTL section heads

2016-04-12 Thread Mohammad Hossein Bateni
e way > I like. Here is the setup that worked. (I will update Wiki later.) > > > > \setupdirections[bidi=global,method=two] > > \setupalign[r2l] > > > > \def\LTR#1{{\lefttoright#1}} > > \def\leftpersiandecimals#1{\LTR{\persiandecimals{#1}}} > > \defineconversion[lef

Re: [NTG-context] RTL section heads

2016-04-12 Thread Otared Kavian
that worked. (I will update Wiki later.) > > \setupdirections[bidi=global,method=two] > \setupalign[r2l] > > \def\LTR#1{{\lefttoright#1}} > \def\leftpersiandecimals#1{\LTR{\persiandecimals{#1}}} > \defineconversion[leftpersiandecimals][\leftpersiandecimals] > \setup

Re: [NTG-context] RTL section heads

2016-04-12 Thread Mohammad Hossein Bateni
ay I > like. Here is the setup that worked. (I will update Wiki later.) > > \setupdirections[bidi=global,method=two] > \setupalign[r2l] > > \def\LTR#1{{\lefttoright#1}} > \def\leftpersiandecimals#1{\LTR{\persiandecimals{#1}}} > \defineconversion[leftpersiandecimals][\leftpersiande

Re: [NTG-context] RTL section heads

2016-04-11 Thread Mohammad Hossein Bateni
#1}} \def\leftpersiandecimals#1{\LTR{\persiandecimals{#1}}} \defineconversion[leftpersiandecimals][\leftpersiandecimals] \setuphead[chapter,title,section,subject] [conversion=leftpersiandecimals,numberstyle=\righttoleft] \defineseparatorset[dashsep][-,-,-,-] \setuphead[section][sectionseparatorset

Re: [NTG-context] RTL section heads

2016-04-11 Thread Hans Hagen
arator). %% Attempt 3 \setupalign[r2l] \def\LTR#1{{\lefttoright#1}} \def\leftnumbers#1{\LTR{\numbers{#1}}} \defineconversion[leftnumbers][\leftnumbers] \setuphead[chapter,title,section,subject] [conversion=leftnumbers] \starttext \placecontent \chapter{sample}

Re: [NTG-context] RTL section heads

2016-04-10 Thread Mohammad Hossein Bateni
right-aligned but texts > left-aligned): > sample1 > text 1.1 > ... > text 1.10 > > > A third attempt gives almost what I want (without period as the separator). > >

[NTG-context] RTL section heads

2016-04-08 Thread Mohammad Hossein Bateni
ves almost what I want (without period as the separator). %% Attempt 3 \setupalign[r2l] \def\LTR#1{{\lefttoright#1}} \def\leftnumbers#1{\LTR{\numbers{#1}}} \defineconversion[leftnumbers][\leftnumbers] \setuphead[chapter,title,section,subject] [conversion=leftnumbers] \starttext \placecontent \chap

Re: [NTG-context] \setupheadnumber and zero

2015-09-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
the zero is not displayed; why? You can't set a negative number for the start of the counter but you can change the appereance. \defineexpandable[1]\PreviousNumber {\number\numexpr#1-1\relax} \defineconversion[PreviousNumber][\PreviousNumber] \defineconversionset[zerostart][n,Prev

Re: [NTG-context] \setupheadnumber and zero

2015-09-08 Thread Wolfgang Schuster
andable[1]\PreviousNumber {\number\numexpr#1-1\relax} \defineconversion[PreviousNumber][\PreviousNumber] \defineconversionset[zerostart][n,PreviousNumber][n] \setuphead[chapter,section][sectionconversionset=zerostart] \starttext \chapter{First chapter} \chapter

Re: [NTG-context] r2l alignment and linenumbering conflict?

2015-08-03 Thread tala...@fastmail.fm
=myconversion] \setupnotations[linenote][numberconversion=myconversion] \setuppagenumber[numberconversion=myconversion] \defineconversion [myconversion] [١,٢,٣,٤,٥,٦,٧,٨,٩,١٠, ١١,١٢,١٣,١٤,١٥,١٦,١٧,١٨,١٩,٢٠, ۲۱,۲۲,۲۳,۲٤,۲٥,۲٦,۲۷,۲۸,۲۹,۳۰, ٣١,٣٢,٣٣,٣٤,٣٥,٣٦,٣٧,٣٨,٣٩,٤٠

Re: [NTG-context] r2l alignment and linenumbering conflict?

2015-08-03 Thread tala...@fastmail.fm
] \setupnotations[linenote][numberconversion=myconversion] \setuppagenumber[numberconversion=myconversion] \defineconversion [myconversion] [١,٢,٣,٤,٥,٦,٧,٨,٩,١٠, ١١,١٢,١٣,١٤,١٥,١٦,١٧,١٨,١٩,٢٠, ۲۱,۲۲,۲۳,۲٤,۲٥,۲٦,۲۷,۲۸,۲۹,۳۰, ٣١,٣٢,٣٣,٣٤,٣٥,٣٦,٣٧,٣٨,٣٩,٤٠, ٤١,٤٢,٤٣,٤٤,٤٥,٤٦,٤٧,٤٨,٤٩,٥٠

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-08-03 Thread tala...@fastmail.fm
ABIC-HINDI NUMERALS\defineconversion[myconversion][١,٢,٣,٤,٥,٦,٧,٨,٩,١٠,١١,١٢,١٣,١٤,١٥,١٦,١٧,١٨,١٩,٢٠,]%% HEADINGS\setuppagenumber[numberconversion=myconversion]%%% LINENUMBERING\setuplinenumbering[% style=\tfxx, referencing=on, step=1, location=outer, method=page, align=left, distance=1em, w

Re: [NTG-context] r2l alignment and linenumbering conflict?

2015-08-03 Thread tala...@fastmail.fm
s[footnote][numberconversion=myconversion]\setupnotations[linenote][numberconversion=myconversion]\setuppagenumber[numberconversion=myconversion]\defineconversion [myconversion] [١,٢,٣,٤,٥,٦,٧,٨,٩,١٠, ١١,١٢,١٣,١٤,١٥,١٦,١٧,١٨,١٩,٢٠, ۲۱,۲۲,۲۳,۲٤,۲٥,۲٦,۲۷,۲۸,۲۹,۳۰, ٣١,٣٢,٣٣,٣٤,٣٥,٣٦,٣

Re: [NTG-context] Arabic/Hindi numerals in layout structures (headers, page numbers, etc.)

2015-08-02 Thread tala...@fastmail.fm
Never mind. After more word combinations when searching the archives, I came across Wolfgang’s answer here: gmane.comp.tex.context/85673 http://article.gmane.org/gmane.comp.tex.context/85673, in which he says to use the \defineconversion command. E.g.: \defineconversion [myconversion

[NTG-context] footnotes in floating tables

2015-07-19 Thread Henry House
] % Use the set of symbols that has become customary in many publications for footnote marks, whose % origin seems to be lost in the misty dawn of history: \defineconversion[tablefootnoteconversion][*,†,‡,§,\textbar\textbar,¶] \starttext %%% Begin title page

[NTG-context] How to increment a counter

2015-02-05 Thread Otared Kavian
={.}, before=, after=\blank] \defineitemgroup[Questions] \defineitemgroup[Answers] \defineconversion[Questions][\numbers] \defineconversion[Answers][\numbers] \setupitemgroup[Questions][style=bold, width=1.5em, packed, alternative=hanging, stopper

Re: [NTG-context] enumeration with the Spanish alphabet

2014-11-12 Thread Wolfgang Schuster
) \defineconversion [ñ][\spanishnumerals] \defineconversion [Ñ][\Spanishnumerals] to \defineconversion [spanishnumerals] [\spanishnumerals] \defineconversion [Spanishnumerals] [\Spanishnumerals] What’s missing as well are these two definitions in core

Re: [NTG-context] enumeration with the Spanish alphabet

2014-11-12 Thread Hans Hagen
you change (are you serious with these names) \defineconversion [ñ][\spanishnumerals] \defineconversion [Ñ][\Spanishnumerals] well, kind of a joke these names ... fo rtesting .. i'll comment them to \defineconversion [spanishnumerals

[NTG-context] Two coexisting number conversions (in headers and in texts)

2014-05-09 Thread Maggyero
in the text (not in the header). For the moment I can achieve only the chapter numbering for the text but not for the header: \define[1]{\myconversion}{\ifcase #1\relax \or First\else \convertnumber{Romannumerals}{#1}\fi} \defineconversion[myconversion][\myconversion] \setuphead[chapter][conversion

Re: [NTG-context] Getting the current chapter number in the TOC

2014-04-17 Thread Wolfgang Schuster
\relax % 0 \or First% 1 \else \convertnumber{Romannumerals}{#1}% \fi} \defineconversion[Weirdnumber][\Weirdnumber] \defineconversionset[Weirdchapter][number,Weirdnumber][number] \setuplist[chapter][width=3em,numberconversionset=Weirdchapter] \starttext \completecontent

Re: [NTG-context] setuphead for in-paragraph head ?

2014-01-09 Thread Otared Kavian
%%% %defining numbered questions \defineconversion[exercise][\numbers] %\setupitemize[packed] \def\StartQuestions{% \startitemize[exercise][width=2em,packed,style=bold,stopper=,right=)]} \def\StopQuestions{\stopitemize} \def\q{\item} % trye each of the following \setups

Re: [NTG-context] setuphead for in-paragraph head ?

2014-01-09 Thread Jaroslav Hajtmar
%%% %defining numbered questions \defineconversion[exercise][\numbers] %\setupitemize[packed] \def\StartQuestions{% \startitemize[exercise][width=2em,packed,style=bold,stopper=,right=)]} \def\StopQuestions{\stopitemize} \def\q{\item} % trye each of the following \setups

Re: [NTG-context] setuphead for in-paragraph head ?

2014-01-09 Thread Otared Kavian
questions \defineconversion[exercise][\numbers] %\setupitemize[packed] \def\StartQuestions{% \startitemize[exercise][width=2em,packed,style=bold,stopper=,right=)]} \def\StopQuestions{\stopitemize} \def\q{\item} % trye each of the following \setups[style:simple] %\setups[style:textrule

Re: [NTG-context] Persian numbers for page numbering

2013-12-22 Thread Wolfgang Schuster
is: \defineconversion [myconversion] [۱,۲,۳,۴,۵,۶,۷,۸,۹,۱۰, ۱۱,۱۲,۱۳,۱۴,۱۵,۱۶,۱۷,۱۸,۱۹,۲۰, ۲۱,۲۲,۲۳,۲۴,۲۵,۲۶,۲۷,۲۸,۲۹,۳۰] \setuppagenumber[numberconversion=myconversion] \setupbodyfont[dejavu,ss] \starttext \dorecurse{30}{\dontleavehmode\page} \stoptext Wolfgang

Re: [NTG-context] How to test the emptyness of a variable?

2013-11-10 Thread Géry Ogam
code for me is: \define[1] \MyConversion{\doifelse{\currentsectioncountervalue}{1}{\doiftextelse{\labeltext{chapter}}{ONE}{#1}}{#1}} \defineconversion[MyConversion][\MyConversion] \setuphead[chapter][conversion=MyConversion] \starttext \setuplabeltext[chapter=] \chapter{Cool} \chapter{Cat

Re: [NTG-context] How to test the emptyness of a variable?

2013-11-09 Thread Aditya Mahajan
if the variable \currentstructurelabel is empty, so the code must be: Why not just check the labeltext? \define[1]\MyConversion {\doifelse{#1}{1}{ONE}{#1}} \define\CheckedConversion % #1 number {\doiftextelse{\labeltexts{chapter}}\MyConversion\numbers} \defineconversion

Re: [NTG-context] Sectioning from 0?

2013-11-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
? \defineexpandable[1]\PreviousNumber{\number\numexpr#1-1\relax} \defineconversion[PreviousNumber][\PreviousNumber] \setuphead[section][conversion=PreviousNumber] \starttext \startsection[title=A] bla \stopsection \startsection[title=B] bla \stopsection \stoptext Wolfgang

Re: [NTG-context] Sectioning from 0?

2013-11-05 Thread Wolfgang Schuster
B - 1 should be here instead of 2; automatically bla instead of: 0 A bla 1 B bla So my original question remains: How to start counting sections (locally) from 0, not from 1? \defineexpandable[1]\PreviousNumber{\number\numexpr#1-1\relax} \defineconversion

Re: [NTG-context] [right=),stopper=] for all \startitemize[a]

2013-11-04 Thread Xan
\stopitemize \stoptext Another trick is to use custom conversion which contain the delimiters and disable the stopper. \defineconversion[xan:a][a),b),c),d),e),f),g),h),i),j),k),l),…] \defineconversion[xan:n][1.,2.,3.,4.,5.,6.,7.,8.,9.,10.,11.,…] \starttext \setupitemize[each][stopper

Re: [NTG-context] [right=),stopper=] for all \startitemize[a]

2013-11-03 Thread Wolfgang Schuster
\stopparenlist \item Three \startitemize[n] \item One \item Two \stopitemize \stopitemize \stoptext Another trick is to use custom conversion which contain the delimiters and disable the stopper. \defineconversion[xan:a][a),b),c),d),e),f),g),h),i),j),k),l

Re: [NTG-context] Numbering sections

2013-09-02 Thread Wolfgang Schuster
]\Previousnumber {\number\numexpr#1-1\relax} \defineconversion[previousnumber][\Previousnumber] \setuphead[chapter][conversion=previousnumber] \starttext \dorecurse{5}{\chapter{Chapter #1}} \stoptext Wolfgang

Re: [NTG-context] Numbering sections

2013-09-02 Thread H. Özoguz
Thanks Wolfgang, nearly perfect, what I wanted. The problem left is here: \defineexpandable[1]\Previousnumber {\number\numexpr#1-1\relax} \defineconversion[previousnumber][\Previousnumber] \setuphead[section][conversion=previousnumber] \starttext \dorecurse{5}{\chapter{Chapter #1} \section

[NTG-context] [***SPAM***] Re: [***SPAM***] How to reduce vertical spacing after this table

2013-07-08 Thread d.henman
it to postion. This doesn't show up right in the minimal, but it works. Help in solving this would be greatly appreciated. % \defineconversion[fnsym][\m{\dagger},\m{*},\m{**},\m{***}] % footnote header symbols \starttext \subject{Subject Name} \blank

[NTG-context] [***SPAM***] How to reduce vertical spacing after this table

2013-07-06 Thread hwitloc
. % \defineconversion[fnsym][\m{\dagger},\m{*},\m{**},\m{***}] % footnote header symbols \starttext \subject{Subject Name} \blank \startlocalfootnotes % [conversion=set fnsym] \setupnotation[footnote][numberconversion=fnsym,rule=off] % change footnote symbols

Re: [NTG-context] [***SPAM***] How to reduce vertical spacing after this table

2013-07-06 Thread Wolfgang Schuster
, but it works. Help in solving this would be greatly appreciated. % \defineconversion[fnsym][\m{\dagger},\m{*},\m{**},\m{***}] % footnote header symbols \starttext \subject{Subject Name} \blank \startlocalfootnotes % [conversion=set fnsym] \setupnotation[footnote

Re: [NTG-context] How do you customize the chapter number format?

2013-04-29 Thread Wolfgang Schuster
]\ChapterConversion {\convertnumber{Numbers}{#1}.0} \defineconversion[ChapterConversion][\ChapterConversion] \setuphead[chapter][conversion=ChapterConversion] \starttext \completecontent \chapter{First Chapter} \section{First Section} \stoptext Wolfgang

[NTG-context] [***SPAM***] Re: [***SPAM***] Symbols for footnotes not working

2013-03-29 Thread hwitloc
It didn't work. Either with texexec or with context. Here is a simpler test case start % basic test to change footnotes bullet to a symbol % basice test to change footnotes bullet to a symbol % \setupfootnotes[rule=off] % had no affect \defineconversion

[NTG-context] [***SPAM***] Re: Symbols for footnotes not working

2013-03-29 Thread Wolfgang Schuster
% \setupfootnotes[rule=off] % had no affect \defineconversion[fnsym]{ \dagger,*,**,***} % etc. \setupfootnotes[conversion=fnsym, numberconversion=fnsym] % Doesn't work \setupnotation[footnote][numberconversion=fnsym,alternative=text] % Doesn't work % conversion=set fnsym

Re: [NTG-context] [***SPAM***] Re: [***SPAM***] Symbols for footnotes not working

2013-03-29 Thread Hans Hagen
[rule=off] % had no affect \defineconversion[fnsym]{ \dagger,*,**,***} % etc. \setupfootnotes[conversion=fnsym, numberconversion=fnsym] % Doesn't work \setupnotation[footnote][numberconversion=fnsym,alternative=text] % Doesn't work % conversion=set fnsym or conversion=fnsym

[NTG-context] [***SPAM***] Symbols for footnotes not working

2013-03-28 Thread hwitloc
From ConTeXt's Wiki Garden the below should work, but it isn't. How can this be accomlished. I want to use just \dagger for the symbol, but any symbol would do. \definesymbol[4]{\dagger] \starttext \defineconversion[dagger][{\dagger},{\dagger}] % use a \dagger for the footnote

Re: [NTG-context] [***SPAM***] Symbols for footnotes not working

2013-03-28 Thread Wolfgang Schuster
Am 28.03.2013 um 07:07 schrieb hwit...@gmail.com: From ConTeXt's Wiki Garden the below should work, but it isn't. How can this be accomlished. I want to use just \dagger for the symbol, but any symbol would do. \definesymbol[4]{\dagger] \starttext \defineconversion[dagger

Re: [NTG-context] \goto links to figures are inactive

2013-02-03 Thread Alan Bowen
is not working In \about[sub:one], the hyperlink is working \stoptext A workaround (using a horrible hack): \defineconversion[gobble][\**gobbleoneargument] \setupcaption[figure][**numberconversion=gobble] \setuplabeltext[figure=] \startplacefigure [ ... location={here}, ...] % Do not add

Re: [NTG-context] \goto links to figures are inactive

2013-02-02 Thread Aditya Mahajan
In \about[fig:cow.pdf], the hyperlink is not working In \about[sub:one], the hyperlink is working \stoptext A workaround (using a horrible hack): \defineconversion[gobble][\gobbleoneargument] \setupcaption[figure][numberconversion=gobble] \setuplabeltext[figure=] \startplacefigure [ ... location

[NTG-context] ConTeXt: Page numbering in words for spanish

2012-11-21 Thread Acidrums4
basically I need to prepend the word 'cien' for each word number from 1 to 99 to write the one-hundreds, 'doscientos' for the two-hundreds... Here is my dirty hacked version of the macro (you may save it as 'numstr.tex' for compiling), and a minimal example as follows: \input numstr \defineconversion

Re: [NTG-context] ConTeXt: Page numbering in words for spanish

2012-11-21 Thread Hans Hagen
: \input numstr \defineconversion[numstring][\numstr] \setupuserpagenumber[numberconversion=numstring] \starttext \dorecurse{100}{\recurselevel\page} \stoptext I'm such a noob with TeX and I cannot figure out how to do this, and I need this for this friday!. However, Aditya in the TeX section

Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-11 Thread Andrew Dowell
English word: \defineconversion [words] [One, Two, Three, Four, Five] I forgot to add how to hook this into Hans' example: \defineconversion [words] [One, Two, Three, Four, Five] \setuphead [chapter] [header=high, command=\MyChapterTitle, style=\bfc

Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-11 Thread Andrew Dowell
English word: \defineconversion [words] [One, Two, Three, Four, Five] I forgot to add how to hook this into Hans' example: \defineconversion [words] [One, Two, Three, Four, Five] \setuphead [chapter] [header=high, command=\MyChapterTitle, style=\bfc

Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-11 Thread Hans Hagen
to the corresponding English word: \defineconversion [words] [One, Two, Three, Four, Five] I forgot to add how to hook this into Hans' example: \defineconversion [words] [One, Two, Three, Four, Five] \setuphead [chapter] [header=high, command=\MyChapterTitle, style=\bfc

Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-10 Thread Marco Patzer
2012-11-10 Hans Hagen: On 11/10/2012 1:38 PM, Andrew Dowell wrote: Chapter One This is the Name of the First Chapter I assume the OP was looking for a way to convert a counter to the corresponding English word: \defineconversion [words] [One, Two

Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-10 Thread Marco Patzer
: \defineconversion [words] [One, Two, Three, Four, Five] I forgot to add how to hook this into Hans' example: \defineconversion [words] [One, Two, Three, Four, Five] \setuphead [chapter] [header=high, command=\MyChapterTitle, style=\bfc, conversion=words, numberstyle

Re: [NTG-context] Bug in footnote conversion?

2012-11-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
://wiki.contextgarden.net/Command/convertnumber http://wiki.contextgarden.net/Command/defineconversion Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax

[NTG-context] Bug in footnote conversion?

2012-10-31 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the following example is copied from http://wiki.contextgarden.net/Command/setupfootnotes: \defineconversion[starred][\starredconv] \def\starredconv#1{\ifcase#1\or*\or**\or***\fi} \setupfootnotes[conversion=starred,color=blue,frame=on] \starttext Charles IV\footnote{Best Czech

Re: [NTG-context] Bug in footnote conversion?

2012-10-31 Thread Wolfgang Schuster
Am 31.10.2012 um 16:16 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, the following example is copied from http://wiki.contextgarden.net/Command/setupfootnotes: \defineconversion[starred][\starredconv] \def\starredconv#1{\ifcase#1\or*\or**\or***\fi

Re: [NTG-context] Bug in footnote conversion?

2012-10-31 Thread Wolfgang Schuster
}{\convertnumber{set 3}{#1}\quad}\par \stoptext You can write your own symbol lists with (I use math mode because the spacing between the asterisks is better): \defineconversion[starred][\m{*},\m{**},\m{***}] - - Are they documented anywhere? You can look if you find something in the manuals

Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-02 Thread Aditya Mahajan
for the hint. It is relatively easy to access the local counter for a cell, and changing background colors dependon the current row works well. \defineconversion [triadcolors] [blue,blue,blue,red,red,red] \startsetups zebra:three \setupTABLE[frame=off,background=color] \setupTABLE

  1   2   3   >